package org.gd.hellojaxb.privatzvit;


import org.gd.hellojaxb.utils.MarshallProperties;
import org.gd.hellojaxb.utils.Marshall;

import javax.xml.bind.JAXBException;
import java.io.IOException;

public class PZTest {

    public static void main(String...str) throws JAXBException, IOException {
        //System.out.println(new Organization());
        User user = new User(10, "name", "sessionKey", new ClientSetting());
        System.out.println(Marshall.getInstance().marshal(user,
                MarshallProperties.FORMATTED_OUTPUT,
                MarshallProperties.WINDOWS1251_ENCODING,
                MarshallProperties.WITHOUT_XML_HEADER
        ));

    }
}
